
export default {
  cartLength(state) {
    let length = 0
    for (let item of state.cartList) {
      if (item.checked){
        length += item.count
      }
    }
    return length
  },
  cartList(state) {
    return state.cartList
  }

}